a{
  text-decoration: none;
  color: #cdc5c5;
}
.top-wrapper{
  background-color: #000;
}
.top-bar{
  max-width: 1200px;
  margin: 0 auto;
  height: 48px;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}
/*左侧导航图标*/
.left-menu{
  &:active{
    .nav{
      display: block;
    }
  }
  //设置菜单
  .nav{
    display: none;
    position: absolute;
    top: 48px;
    background-color: #000;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 30px;
    li{
      width: 80%;
      margin: 0 auto;
      border-bottom: 1px solid #363636;

      a{
        display: block;
        line-height: 44px;
        font-size: 14px;
      }
      &:last-child a{
        display: inline-block;
        margin-right: 6px;
      }
      span{
        color: #cdc5c5;
      }
    }
  }
  //图标
  .menu-icon{
    width: 18px;
    height: 48px;
    position: relative;
    li{
      width: 100%;
      height: 1px;
      background-color: #fff;
      position: absolute;
      transform-origin: left center;
      transition: 0.3s;
    }
    li:nth-child(1){
      top: 18px;
    }
    li:nth-child(2){
      top: 24px;
    }
    li:nth-child(3){
      top: 30px;
    }

    //鼠标移入的效果
    &:active{
      li:nth-child(1){
        transform: rotateZ(41deg);
      }
      li:nth-child(2){
        //隐藏
        opacity: 0;
      }
      li:nth-child(3){
        transform: rotateZ(-41deg);
      }
    }
  }
}

//设置logo
.logo{
  a{
    //影藏文字
    text-indent: -9999px;
    display: block;
    width: 122px;
    height: 32px;
    background-image: url('../img/18/dff63979.sprites-index@2x.png');
    background-size: 400px 400px;
  }
}


@media only screen {
  @media(min-width: 768px){
    .logo{
      order: 1;
    }
    .left-menu{
      flex: auto;
      order: 2;
      .nav{
        padding: 0;
        display: flex;
        position: static;
        justify-content: space-around;
        li{
          width: auto;
          border-bottom: none;
          margin: 0;
          a{
            line-height: 48px;
          }
          span{
            display: none;
          }
        }
      }
      //隐藏菜单图标
      .menu-icon{
        display: none;
      }
    }
    .user-info{
      order: 3;
    }
  }
}
